Skip to content

switch new project add to create method#336

Merged
eleanorjboyd merged 9 commits intomicrosoft:mainfrom
eleanorjboyd:switch-who-handles-adding-project
Apr 25, 2025
Merged

switch new project add to create method#336
eleanorjboyd merged 9 commits intomicrosoft:mainfrom
eleanorjboyd:switch-who-handles-adding-project

Conversation

@eleanorjboyd
Copy link
Copy Markdown
Member

@eleanorjboyd eleanorjboyd commented Apr 24, 2025

  • renamed addPythonProject in src/features/envCommands.ts to addPythonProjectCommand (as it is only a command entry point)
  • moved responsibility so ProjectCreators are responsible for adding their created projects to the ProjectManager list
  • updated addPythonProjectCommand so it calls the selected ProjectCreator create method OR (if the resource param already a ProjectItem) just add it to the ProjectManager list

@eleanorjboyd eleanorjboyd self-assigned this Apr 24, 2025
Comment thread src/features/envCommands.ts Outdated
@eleanorjboyd eleanorjboyd marked this pull request as ready for review April 24, 2025 18:51
@vs-code-engineering
Copy link
Copy Markdown

⚠️ This PR originates from a fork. Due to security restrictions, pipelines from forks are no longer triggered automatically. Learn more.

If the changes appear safe, you can manually trigger the pipeline by commenting /AzurePipelines run.

@vs-code-engineering vs-code-engineering Bot added this to the April 2025 milestone Apr 24, 2025
@eleanorjboyd
Copy link
Copy Markdown
Member Author

@karthiknadig question here is how we might know if findExisting project should be a project or not. Like if it has an env or not. Not sure how to tell this and build it into the logic

@karthiknadig
Copy link
Copy Markdown
Member

We should remove the autofind projects feature and think about a better approach to it. What we have now was a demonstration of what you could do.

@eleanorjboyd eleanorjboyd merged commit f34f14c into microsoft:main Apr 25, 2025
6 checks passed
eleanorjboyd added a commit that referenced this pull request Apr 25, 2025
- renamed `addPythonProject` in src/features/envCommands.ts to
`addPythonProjectCommand` (as it is only a command entry point)
- moved responsibility so ProjectCreators are responsible for adding
their created projects to the ProjectManager list
- updated `addPythonProjectCommand` so it calls the selected
ProjectCreator create method OR (if the resource param already a
ProjectItem) just add it to the ProjectManager list
NguyenCuong1989 referenced this pull request in NguyenCuong1989/vscode-python-environments Oct 23, 2025
- renamed `addPythonProject` in src/features/envCommands.ts to
`addPythonProjectCommand` (as it is only a command entry point)
- moved responsibility so ProjectCreators are responsible for adding
their created projects to the ProjectManager list
- updated `addPythonProjectCommand` so it calls the selected
ProjectCreator create method OR (if the resource param already a
ProjectItem) just add it to the ProjectManager list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants